<template>
  <div>
    <Header v-if="isRouterAlive"></Header>
    <router-view v-if="isRouterAlive" />
    <Footer></Footer>
  </div>
</template>

<script>
import Header from './components/hearder/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(function () {
        this.isRouterAlive = true
      })
    }
  },
  components: {Footer, Header}
}
</script>

<style>

</style>
